package com.isoft.farm.controller;

import com.isoft.farm.common.JsonResult;
import com.isoft.farm.service.SysDeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/dept")
public class SysDeptController {
    @Autowired
    SysDeptService sysDeptService;
    @RequestMapping("/doFindZtreeDeptNodes")
    public JsonResult doFindZtreeMenuNodes(){
        return new JsonResult(sysDeptService.findZtreeDeptNodes());
    }

}
